﻿using System;
using Server;
namespace Producer
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("-------------Hello World模式---------------");
 
            var msg = "";
            do
            {
                Console.WriteLine("输入你要发送的消息：");
                msg = Console.ReadLine(); 
                MQProducer.SendQueueMsg(msg, "简单队列");

            } while (msg.ToLower() != "out");

            Console.WriteLine("退出了控制台");
            Console.ReadLine();
        }
    }
}
